package com.gxa.accommodation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AccommodationRoomType implements Serializable {

  @TableId(type = IdType.ASSIGN_ID)
  private Long id;
  private Integer serialNumber;
  private String roomTypeName;
  private BigDecimal roomPrice;
  private Double roomArea;
  private Integer seatingCapacity;
  private Byte currency;
  private Byte roomStatus;
  private String roomImg;
  //最近登录时间
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
  private Timestamp createTime;
  //最近登录时间
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
  private Timestamp updateTime;
  /**
   * 是否删除
   */
  @TableLogic
  private Byte isDelete;

}
